package controller

import (
	"context"
	"xr-game-server/core/httpserver"
	"xr-game-server/dto/serverdto"
	"xr-game-server/module/server"
)

type AppServer struct {
}

func initAppServer() {
	httpserver.RegAPI(Server, &AppServer{})
}

func (this *AppServer) GetServer(ctx context.Context, req *serverdto.ServerReq) (res *serverdto.ServerRes, err error) {
	return server.GetServer(ctx, req)
}

func (this *AppServer) PushCloseServerReq(ctx context.Context, req *serverdto.PushCloseServerReq) (res *httpserver.PushResp, err error) {
	return nil, nil
}

func (this *AppServer) PushOpenServerReq(ctx context.Context, req *serverdto.PushOpenServerReq) (res *httpserver.PushResp, err error) {
	return nil, nil
}
